package red.mlz.gameservice.controller.tag;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import red.mlz.common.entity.tag.Tag;
import red.mlz.gameservice.service.tag.TagService;

@RestController
@Slf4j
public class TagController {

    @Autowired
    private TagService tagService;

    @RequestMapping("/tag-service/getById")
    public Tag getById(@RequestParam("id") Long id) {
        return tagService.getById(id);
    }
}
